package com.py.credit.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.py.credit.entity.Account;

public interface AccountDao {

	void add(Account account);

	void delete(@Param(value = "id") String accountId);

	void updateStatus(@Param(value = "id") String accountId, @Param(value = "status") String status);

	Account select(@Param(value = "id") String accountId);

	void updatePassword(@Param(value = "id") String accountId, @Param(value = "password") String password);

	Account selectBy(@Param(value = "userName") String userName, @Param(value = "password") String password);

	void updateAccountCheckType(@Param(value = "accountId") String accountId,
			@Param(value = "checkType") String checkType);

	int selectCountByAccount(@Param(value = "account") String account);

	List<String> selectAccountAct(@Param(value = "accountId") String accountId);

}
